#!/bin/bash
cd /app/cloud-microservices
git pull origin master

cd /app/cloud-microservices/cloud-admin-frontend
npm run build
rm -rf /usr/local/nginx-my-stream/nginx1.16/html/microservices-admin/*
cp -r dist/* /usr/local/nginx-my-stream/nginx1.16/html/microservices-admin
echo 'microservices-admin build success'

